import BasePath from "../config";

const list = {
	path: `${BasePath}/points-mall/brand-list/tab-list`,
	name: 'brand-list',
	component: () => import('@/views/home/operate-panel/points-mall/brand-list/brand-list-table.vue'),
	meta: {
		keepAlive: false
	},
}
/* const goods = {
	path: `${BasePath}/points-mall/brand-list/show-goods`,
	name: 'show-goods',
	component: () => import('@/views/home/operate-panel/points-mall/brand-list/show-goods.vue'),
	meta: {
		keepAlive: false
	},
} */

export default [
	{ 
		path: `${BasePath}/points-mall/brand-list`,
		redirect:`${BasePath}/points-mall/brand-list/tab-list`,
		name: 'brand-list',
		component: () => import('@/views/home/operate-panel/points-mall/brand-list/tab-control.vue'),
		meta: {
			keepAlive: false
		},
		children: [
			list
		]
	},
	{ 
		path: `${BasePath}/points-mall/category`,
		name: 'category',
		component: () => import('@/views/home/operate-panel/points-mall/category/tab-control.vue'),
		meta: {
			keepAlive: false
		}
	},
	{ 
		path: `${BasePath}/points-mall/commodity`,
		name: 'commodity',
		component: () => import('@/views/home/operate-panel/points-mall/commodity/tab-control.vue'),
		meta: {
			tabs:[{ label: '商品列表', name: 'com-list', component: ()=>import('@/views/home/operate-panel/points-mall/commodity/com-list.vue')}],
			keepAlive: false
		},
		props: (route) => ({ id: route.query.id })
	},
	{ 
		path: `${BasePath}/points-mall/points-order`,
		name: 'points-order',
		component: () => import('@/views/home/operate-panel/points-mall/points-order/tab-control.vue'),
		meta: {
			tabs:[
				{ label: '订单列表', name: 'order-list', component: ()=>import('@/views/home/operate-panel/points-mall/points-order/order-list.vue')},
				{ label: '京东开票', name: 'jd-invoice', component: ()=>import('@/views/home/operate-panel/points-mall/points-order/jd-invoice.vue')},
				{ label: '订单结算', name: 'order-settlement', component: ()=>import('@/views/home/operate-panel/points-mall/points-order/order-settlement.vue')}
			],
			keepAlive: false
		}
	}
]